<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <meta name="twitter:card" content="summary" />
    <meta name="twitter:site" content="@echocen_andrew" />
    <meta name="twitter:title" content="Simple, Economical Client Documents" />
    <meta name="twitter:description" content="A web service for generating & publishing professional emails, PDFs, DOCXs, etc by merging templates & data. Manage your company's outgoing mail with ease." />
    <meta name="twitter:image" content="http://www.echopublish.com/img/paper-plane.png" />

    <title>博客系统</title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
    <link rel="shortcut icon" href="tubiao.ico">
    <link rel="tubiao.ico" href="tubiao.ico">
</head>
<body id="page-top" class="index" style="background-color: gray">
<nav class="navbar navbar-default navbar-fixed-top">
    <span>
        <form action="/search" method="GET">
            <input type="text" name="keyword" placeholder="在此进行文章搜索" class="search" />
        </form>
    </span>
    <div class="container">
        <div class="navbar-header page-scroll">
            <a class="navbar-brand" href="#"><img class="img-responsive" src="/logo.png" alt="" style="height: 50px;width: 50px;border-radius: 50%;"></a>
        </div>

        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav navbar-right">
                <li class="hidden">
                    <a href="#page-top"></a>
                </li>
                <li class="page-scroll">
                    <a href="/">首页</a>
                </li>
                <li class="page-scroll">
                    <a href="/archive">存档</a>
                </li>
                <li class="page-scroll">
                    <a href="/tags">标签</a>
                </li>
                <% if(user){%>
                <li class="page-scroll">
                    <a href="/#">我的微博</a>
                </li>
                <li class="page-scroll">
                    <a href="/post">发布</a>
                </li>
                <li class="page-scroll">
                    <a href="/upload">上传</a>
                </li>
                <li class="page-scroll">
                    <a href="/logout">退出</a>
                </li>
                <% } else { %>
                <li class="page-scroll">
                    <a href="/#">全部微博</a>
                </li>
                <li class="page-scroll">
                    <a href="/reg">注册</a>
                </li>
                <li class="page-scroll">
                    <a href="/login">登录</a>
                </li>
                <% } %>
            </ul>
        </div>
    </div>
</nav>
<article>
    <% if (success) { %>
    <div><%= success %></div>
    <% } %>
    <% if (error) { %>
    <div><%= error %> </div>
    <% } %>
